Embedding DSLs into GPLS: a Grammatical Inference Approach
نویسندگان
چکیده
Embedding of Domain-Specific Languages (DSLs) into General-Purpose Languages (GPLs) is often used to express domain-specific problems using the domain’s natural syntax inside GPL programs. It speeds up the development process, programs are more self-explanatory and repeating tasks are easier to handle. End-users or domain experts know what the desired language syntax would look like, but do not know how to write a grammar and language processing tools. Grammatical inference can be used for grammar extraction from input examples. A memetic algorithm for grammatical inference, named MAGIc, was implemented to extract grammar from DSL examples. In this work MAGIc is extended with embedding the inferred DSL into existing GPL grammar. Additionally, negative examples were also incorporated into the inference process. From the results it can be concluded that MAGIc is successful for DSL embedding and that the inference process is improved with use of negative examples.
منابع مشابه
Building DSLs with AMMA/ATL: a Case Study on SPL and CPL Telephony Languages
Domain-Specific Languages (DSLs) enable more concise and readable specifications than General Purpose Languages (GPLs). They are for this reason increasingly used. This DSL approach presents, however, many challenges. One of them is the prototyping and implementation of the numerous DSLs that are required to replace a single GPL. This work presents a case study of implementing two telephony lan...
متن کاملUnit Testing for Domain-Specific Languages
Domain-specific languages (DSLs) offer several advantages by providing idioms that are similar to the abstractions found in a specific problem domain. However, a challenge is that tool support for DSLs is lacking when compared to the capabilities offered in general-purpose languages (GPLs), such as Java and C++. For example, support for unit testing a DSL program is absent and debuggers for DSL...
متن کاملTowards Compositional Domain Specific Languages
The deployment of Domain Specific Languages (DSL) and in particular Domain Specific Modeling Languages (DSML) is becoming more and more prominent in various domains. In order to cope with the complexity of the realization of DSLs, common and well-established methods of software engineering such as modularization and reuse need to be adapted and applied for DSLs. This has already been noted in [...
متن کاملSoftware Languages Engineering: Experimental Evaluation
iv v Resumo As Linguagens de Domínios Específicos (DSLs) são linguagens que através de Abstract Domain-Specific Languages (DSLs) are programming languages that offer, through appropriate notation and abstraction, still enough an expressive control over a particular problem domain for more restricted use. They are expected to contribute with an enhancement of productivity, reliability, maintaina...
متن کاملMulti-Language Refactoring with Dimensions of Semantics-Preservation
Today, software developers utilize different general-purpose (GPL) and domain-specific languages (DSL) to implement multi-language software applications (MLSA). MLSAs, thus, contain artifacts of different GPLs and DSLs, e.g., sourcecode files and configurations. In a recent study we found that refactoring an artifact can break artifact interaction and that interaction cannot be re-established b...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- ITC
دوره 40 شماره
صفحات -
تاریخ انتشار 2011